<script setup>

import { onMounted, ref } from 'vue';
//声明响应式数据
const count = ref(0);

// 声明函数
function increment(){
    count.value++;
}

onMounted(()=>{
    console.log("vue 挂载完毕");
    
})

</script>


<template>

<!-- html -->
<button @click="increment">count:{{ count  }}</button>
</template>

<style></style>